package cn.tedu.smartos.family_user.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
public class MedicationReminder {
    @ApiModelProperty(value = "提醒ID")
    private Long reminderId;

    @ApiModelProperty(value = "老人用户ID", required = true)
    private Long elderlyUserId;

    @ApiModelProperty(value = "家属用户ID", required = true)
    private Long familyUserId;

    @ApiModelProperty(value = "药品名称", required = true)
    private String medicationName;

    @ApiModelProperty(value = "剂量", required = true)
    private String dosage;

    @ApiModelProperty(value = "服用频率", required = true)
    private String frequency;

    @ApiModelProperty(value = "开始日期", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    @ApiModelProperty(value = "结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    @ApiModelProperty(value = "提醒时间", required = true)
    @JsonFormat(pattern = "HH:mm:ss")
    private Date reminderTime;

    @ApiModelProperty(value = "提醒日", required = true,
            notes = "1-7表示周一到周日，如1,2,3,4,5")
    private String reminderDays;

    @ApiModelProperty(value = "是否激活：0-否，1-是")
    private Integer isActive = 1;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
